package com.oxygen.design.state.interfaces.impl;

import com.oxygen.design.state.bean.Context;
import com.oxygen.design.state.interfaces.State;

/**
 * @author wangjie
 * @title: StopState
 * @description: TODO
 * @date 2022/3/30 21:57
 **/
public class StopState implements State {

    @Override
    public void doAction(Context context) {
        System.out.println("Player is in stop state");
        context.setState(this);
    }

    @Override
    public String toString() {
        return "Stop State";
    }
}